package com.bsj.media.media;

public class NalInfo {
	// ! Length of the NAL unit (Excluding the start code, which does not belong to
	// the NALU)
	public int len;
	public int len_without_sc;
	public boolean forbidden_bit; // ! should be always FALSE
	public int nal_reference_idc; // ! NALU_PRIORITY_xxxx
	public int nal_unit_type; // ! NALU_TYPE_xxxx
	public byte[] buf; // ! contains the first byte followed by the EBSP
	byte[] buf_without_sc;

	public int getLen() {
		return len;
	}

	public void setLen(int len) {
		this.len = len;
	}

	public int getNal_unit_type() {
		return nal_unit_type;
	}

	public void setNal_unit_type(int nal_unit_type) {
		this.nal_unit_type = nal_unit_type;
	}

	public byte[] getBuf() {
		return buf;
	}

	public void setBuf(byte[] buf) {
		this.buf = buf;
	}

	public void reset() {
		this.buf = null;
		this.len = 0;
		this.nal_unit_type = 0;
	}
}
